

            <h1>
              店铺商品管理 <small><?php echo $title; ?>  
              <a href="<?php echo site_url('admin/newitem?store_id=') .$store_id ;?>">----->添加商品</a>
              <a href="<?php echo site_url('admin') ;?>">----->返回店铺管理</a>
            </small>
            </h1>
          </div>
          <div class="panel panel-default">
          
          <!-- Default panel contents -->
          <div class="panel-heading">历史记录</div>

          <!-- Table -->
          <table class="table">
            <thead>
              <tr>
                <th>ID</th>
                <th>名称</th>
                <th>类型</th>
                <th>价格</th>
                <th>描述</th>
                <th>图片</th>
                <th>状态</th>
              </tr>
            </thead>
            <tbody>
              <?php foreach ($itemlist as $question_item): ?>
                <tr>
                  <td><?php echo $question_item['item_id'] ;?>
                  <a href='<?php echo site_url("admin/deleteitem?item_id=") . $question_item['item_id'] . "&store_id=" . $store_id; ?>'>
                    删除
                  </a>
                  <a href='<?php echo site_url("admin/updateitem?item_id=") . $question_item['item_id'] . "&store_id=" . $store_id; ?>'>
                    修改
                  </a>
                  </td>
                  <td><?php echo $question_item['item_name'] ;?></td>
                  <td><?php echo $question_item['item_type'] ;?></td>
                  <td><?php echo $question_item['item_price'] ;?></td>
                  <td><?php echo $question_item['item_note'] ;?></td>
                  <td><a href="<?php echo base_url($question_item['item_pic']) ;?>">
                        <?php
                          if ($question_item['show_pic'] == 0)
                          {
                            echo "正常显示";
                          }
                          else
                          {
                            echo "已经隐藏";
                          }
                        ?>
                      </a></td>
                  <td><?php echo $question_item['item_state'] ;?></td>
                </tr>
              <?php endforeach ?>
            </tbody>
          </table>
        </div>
          